import Vue from 'vue'
import Vuex from 'vuex'
import { getToken} from '@/utils/auth'
import user from './modules/user'
import loading from './modules/loading'
import historyInfomation from './modules/historyInfomation'
import materialEntry from './modules/materialEntry'
Vue.use(Vuex)

const store = new Vuex.Store({
  state: {
    // 放置初始状态 app启动的时候的全局的初始值
    code:123,
    DATA:[]
  },
  mutations: {
    
  },
  modules: {
    user,
    loading,
    historyInfomation,
    materialEntry
  }
})
export default store